using B.S.XZYData.ErrorCode;
using MediatR;

namespace B.S.XZYData.Api.Wrter.Application.Command.Process
{
    /// <summary>
    /// 编辑工序命令
    /// </summary>
    public class UpdateProcessCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 工序ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; } = string.Empty;

        /// <summary>
        /// 报工权限(逗号分隔的角色)
        /// </summary>
        public string ReportingPermissions { get; set; } = string.Empty;

        /// <summary>
        /// 报工数配比
        /// </summary>
        public int ReportingRatio { get; set; } = 1;

        /// <summary>
        /// 不良品项列表(管道分隔的ID\描述)
        /// </summary>
        public string? DefectiveItemList { get; set; }

        /// <summary>
        /// 测试字段1
        /// </summary>
        public string? TestField1 { get; set; }

        /// <summary>
        /// 测试字段2
        /// </summary>
        public string? TestField2 { get; set; }

        /// <summary>
        /// 工序采集数据列表
        /// </summary>
        public List<ProcessCollectionDataDto>? CollectionDataList { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string Updator { get; set; } = string.Empty;
    }
} 